package demo

import (
	"gitee.com/cloudapex/ulern/htp"
	"github.com/gin-gonic/gin"
)

func init() {
	htp.Register("demo", &Demo{})
}

type Demo struct{}

func (a Demo) InitRouter(r *gin.Engine) {
	g := r.Group("demo")

	g.GET("hello", func(c *gin.Context) { htp.Service(c, &Hello{}) })
}
